package com.lj.back.manage.scaffold.module.job.DTO;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 定时任务修改对象
 * @author lv
 * @version 1.0.0
 */
@Data
@ApiModel("定时任务更新对象")
public class ScheduleJobUpdate {
    /**
     * 任务id
     */
    @NotNull(message = "{schedule.job.id.notnull}")
    @ApiModelProperty(value = "定时任务ID",example = "123451",required = true)
    private Long id;

    /**
     * cron表达式
     */
    @ApiModelProperty(value = "cron表达式",example = "0 0/10 * * * ? *")
    private String cron;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注",example = "定时清除无效token")
    private String remark;
}
